<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link type="text/css" rel="stylesheet" href="../static/css/style.css">

    <style>

</style>
</head>
<body>
<div class="jumbotron" >
    <h1 class="text-center"><strong th:text="欢迎您"></strong></h1>
    <h1 class="text-center"><strong th:text="${user.username}"></strong></h1>
    <p class="text-center">This is a lightweight defense system, can be applied to various occasions of defense, for your defense activities to provide convenience! </p>
</div>
<div class="list-group col-lg-10 col-lg-offset-1">
    <table class="table table-hover table-striped">
        <a th:href="@{'/manaLogin/toAddDefense'}" class="btn btn-primary">
            点我添加答辩事件
        </a>
        <thead>
            <tr>
                <th>答辩名称</th>
                <th>删除操作</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="draw : ${draws}">
                <td><a th:href="@{'/manaLogin/toDefenseOrder/'+${draw.drawname}+'/0'}"  th:text="${draw.drawname}"></a></td>
                <td><a th:href="@{'/manaLogin/delFromUser/'+${draw.drawname}}" class="btn btn-primary" >删除</a></td>
            </tr>
        </tbody>
    </table>
</div>
</body>
</html>